<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Novo Evento</title>

</head>
<body>

	<c:forEach var="error" items="${errors}">
    	${error.category} - ${error.message}<br />
	</c:forEach>

	<form action="${linkTo[EventoController].save}" method="post"
		>
		<input name="evento.nome" placeholder="Nome do Evento"/>
		
		Tipo de Evento:
		
		<select name="evento.tipoEvento.id">
			<c:forEach items="${tiposEvento}" var="tipo">
				<option value="${tipo.id}">${tipo.nome}</option>
			</c:forEach>
		</select>
		
		
		
		<input type="submit" value="Gravar Evento." />
	</form>



	<a href="${linkTo[EventoController].list}">Cancelar
		e ir para lista</a>

</body>
</html>